home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhhPPPPIIIIDDDD((((3333xxxx)))) ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhhPPPPIIIIDDDD((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- cpusetAttachPID - attach a specific process to a cpuset
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ccccppppuuuusssseeeetttt....hhhh>>>>
-
- iiiinnnntttt ccccppppuuuusssseeeettttAAAAttttttttaaaacccchhhhPPPPIIIIDDDD((((qqqqnnnnaaaammmmeeee,,,, ppppiiiidddd))));;;;
-
- cccchhhhaaaarrrr ****qqqqnnnnaaaammmmeeee;;;;
-
- ppppiiiidddd____tttt ppppiiiidddd;;;;
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _c_p_u_s_e_t_A_t_t_a_c_h_P_I_D function is used to attach a specific process
- identified by its PID to the cpuset identified by _qqqq_nnnn_aaaa_mmmm_eeee. Every cpuset
- queue has a file that defines access permissions to the queue. The
- execute permissions for that file will determine if a process owned by a
- specific user can attach a process to the cpuset queue.
-
- The _qqqq_nnnn_aaaa_mmmm_eeee argument is the name of the cpuset to which the specified
- process should be attached.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- This example attaches the current process to a cpuset queue named
- mpi_set.
-
- char *qname = "mpi_set";
-
- /* Attach to cpuset, if error - print error & exit */
- if (!cpusetAttachPID(qname, pid)) {
- perror("cpusetAttachPID");
- exit(1);
- }
-
-
- NNNNOOOOTTTTEEEESSSS
- _c_p_u_s_e_t_A_t_t_a_c_h_P_I_D is found in the library "libcpuset.so", and will be
- loaded if the option _----_llll_cccc_pppp_uuuu_ssss_eeee_tttt is used with _cccc_cccc(1) or _llll_dddd(1).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- cpuset(1), cpusetCreate(3x), cpusetDetachPID(3x), cpuset(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If successful, _c_p_u_s_e_t_A_t_t_a_c_h_P_I_D returns a 1. If _c_p_u_s_e_t_A_t_t_a_c_h_P_I_D fails, it
- returns the value 0 and eeeerrrrrrrrnnnnoooo is set to indicate the error. The possible
- values for eeeerrrrrrrrnnnnoooo are the same as those used by _s_y_s_m_p(2).
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-